// 引入依赖的配置文件模块
require(["config"], function(){
	// 引入依赖模块
	require(["jquery", "header", "carousel"], function($){
		function Index() {
			this.loadCarousel();
		}
		$.extend(Index.prototype, {
			// 加载轮播图
			loadCarousel: function() {
				
				$(".carousel-box").carousel({
					imgs : [
						{href:"#", src:"/images/banner.jpg"},
						{href:"#", src:"/images/banner1.jpg"}
					],
					width: 855,
					height: 575,
					duration: 3000
				});
				console.log($(".carousel-box"))
			}
		});

		new Index();
	});
});